<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>is_equal (ZooomrResponse)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File Zooomr.Response.rb, line 59</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_equal</span> (<span class="ruby-identifier">a_value</span>)
    <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;in eql&quot;</span>
    <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">a_value</span>
      <span class="ruby-keyword kw">when</span> <span class="ruby-constant">ZooomrResponse</span>
        <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">&quot;Not a boolean&quot;</span>, <span class="ruby-identifier">caller</span>
    <span class="ruby-keyword kw">else</span>
      <span class="ruby-comment cmt"># assume boolean</span>
      <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">a_value</span>.<span class="ruby-identifier">eql?</span>(<span class="ruby-ivar">@return_code</span>)
    <span class="ruby-keyword kw">end</span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>